lockdown: Print current->comm in restriction messages
authorDavid Howells <dhowells@redhat.com>
Wed, 28 Feb 2018 14:43:03 +0000 (14:43 +0000)
committerSalvatore Bonaccorso <carnil@debian.org>
Thu, 26 Sep 2019 12:19:06 +0000 (13:19 +0100)
commit32e70864a6c6507879bab7b190357543f215b6b9
treeed4e32fe27be2ce0b4092026174ef5068551cd7d
parent4fab3d9954ee50dd672c2260ca5e712237a0f631
lockdown: Print current->comm in restriction messages

Print the content of current->comm in messages generated by lockdown to
indicate a restriction that was hit.  This makes it a bit easier to find
out what caused the message.

The message now patterned something like:

Lockdown: <comm>: <what> is restricted; see man kernel_lockdown.7

Signed-off-by: David Howells <dhowells@redhat.com>
Gbp-Pq: Topic features/all/lockdown
Gbp-Pq: Name 0030-lockdown-Print-current-comm-in-restriction-messages.patch
security/lock_down.c